package com.atguigu.gulimail.cart.service;

import com.atguigu.gulimail.cart.vo.Cart;
import com.atguigu.gulimail.cart.vo.CartItem;

import java.util.List;

public interface CartService {
    CartItem addToCart(Long skuId, Integer num);

    CartItem getCartItem(Long skuId);

    Cart getCart();
    //清除临时购物车数据
    void clearCart(String cartKey);

    //勾选购物项
    void checkItem(Long skuId, Integer check);
    //修改购物项数量
    void checkItemCount(Long skuId, Integer num);

    void deleteItem(Long skuId);

    List<CartItem> getUserCartItems();
}
